﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Materpage.master" AutoEventWireup="true" CodeFile="CategoryProduct.aspx.cs" Inherits="CategoryProduct" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="css/index.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="product">
                <div class="title">
                    <span>
                        <asp:DataList ID="DataList1" runat="server">
                            <ItemTemplate>
                            <asp:Label id="lbtCateName" runat="server" Text='<%# Eval("CateName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:DataList>
                    </span>
                </div>
                <div class="item">
                    <asp:Repeater runat="server" ID="itemRepeater" ValidateRequestMode="Disabled">
                        <ItemTemplate>
                            <div class="box-pro">
                                <asp:Label ID="lblProName" runat="server" Text='<%# Eval("ProName") %>' CssClass="name"></asp:Label>
                                <asp:Label ID="lblProId" runat="server" Text='<%# Eval("ProId") %>' Visible="False"></asp:Label>
                                <br />
                                <a href="DetailProduct.aspx?ProductID=<%# Eval("ProId") %>">
                                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Image") %>' CssClass="image" Height="140px" Width="141px" />
                                </a>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
                            <br />
                                &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Red" Text="Giá: "></asp:Label>
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("Price")%>' CssClass="count" Font-Bold="True" ForeColor="Red"></asp:Label>
                                <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" Text=" VNĐ "></asp:Label>
                                <br />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <a href="DetailProduct.aspx?ProductID=<%# Eval("ProId") %>">Xem chi tiết</a>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <br style="clear: both" />
                <div class="page">
                    <cc1:CollectionPager ID="collect" runat="server" ShowPageNumbers="True"
                        LabelText="TRANG" PageSize="3" BackText="Trước &nbsp " NextText="&nbsp Sau " FirstText="Đầu" LastText="Cuối"
                        ResultsFormat="" ShowLabel="False" MaxPages="10"
                        BackNextLocation="Split" HideOnSinglePage="True"
                        PageNumbersDisplay="Numbers" PageNumberStyle=""
                        ShowFirstLast="False" UseSlider="True" BackNextLinkSeparator="."
                        PagingMode="PostBack" ControlCssClass="colored-border:white;colorChooser:white">
                    </cc1:CollectionPager>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

